package gxnualbert.LambdaDemo.test5;

import java.util.Comparator;

/**
 * @auther gxnualbert
 * @create 2021-05-30-15:17
 */
public class UserCompare implements Comparator<User> {
    @Override
    public int compare(User o1, User o2) {
        return o1.getAge() -o2.getAge();
    }
}
